package tests;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Einlesen {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		BufferedReader console = new BufferedReader(new InputStreamReader(
				System.in));
		System.out.print("Eingabe: ");
		String zeile = null;
		try {
			zeile = console.readLine();
		} catch (IOException e) {
			// Sollte eigentlich nie passieren
			e.printStackTrace();
		}
		System.out.println("Ausgabe: " + zeile);
		
		Scanner s = new Scanner(System.in);
		System.out.println("Scanner-Eingabe: ");
		String str = s.next();
		System.out.println(str);
		
	}

}
